from .status import ResponseStatus


class Result:

    @staticmethod
    def success(message=ResponseStatus.SUCCESS.msg, data=None):
        return {
            'status': ResponseStatus.SUCCESS.code,
            'message': message,
            'data': data
        }

    @staticmethod
    def faild(code, msg):
        return {
            'status': code,
            'message': msg
        }
